Optimal. Leaf size=81 \[ \frac {2 (b d-a e) (B d-A e) \sqrt {d+e x}}{e^3}-\frac {2 (2 b B d-A b e-a B e) (d+e x)^{3/2}}{3 e^3}+\frac {2 b B (d+e x)^{5/2}}{5 e^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {78}
\begin {gather*} -\frac {2 (d+e x)^{3/2} (-a B e-A b e+2 b B d)}{3 e^3}+\frac {2 \sqrt {d+e x} (b d-a e) (B d-A e)}{e^3}+\frac {2 b B (d+e x)^{5/2}}{5 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {(a+b x) (A+B x)}{\sqrt {d+e x}} \, dx &=\int \left (\frac {(-b d+a e) (-B d+A e)}{e^2 \sqrt {d+e x}}+\frac {(-2 b B d+A b e+a B e) \sqrt {d+e x}}{e^2}+\frac {b B (d+e x)^{3/2}}{e^2}\right ) \, dx\\ &=\frac {2 (b d-a e) (B d-A e) \sqrt {d+e x}}{e^3}-\frac {2 (2 b B d-A b e-a B e) (d+e x)^{3/2}}{3 e^3}+\frac {2 b B (d+e x)^{5/2}}{5 e^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 68, normalized size = 0.84 \begin {gather*} \frac {2 \sqrt {d+e x} \left (5 A b e (-2 d+e x)+5 a e (-2 B d+3 A e+B e x)+b B \left (8 d^2-4 d e x+3 e^2 x^2\right )\right )}{15 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 72, normalized size = 0.89
method | result | size |
derivativedivides | \(\frac {\frac {2 B b \left (e x +d \right )^{\frac {5}{2}}}{5}+\frac {2 \left (\left (a e -b d \right ) B +b \left (A e -B d \right )\right ) \left (e x +d \right )^{\frac {3}{2}}}{3}+2 \left (a e -b d \right ) \left (A e -B d \right ) \sqrt {e x +d}}{e^{3}}\) | \(72\) |
default | \(\frac {\frac {2 B b \left (e x +d \right )^{\frac {5}{2}}}{5}+\frac {2 \left (\left (a e -b d \right ) B +b \left (A e -B d \right )\right ) \left (e x +d \right )^{\frac {3}{2}}}{3}+2 \left (a e -b d \right ) \left (A e -B d \right ) \sqrt {e x +d}}{e^{3}}\) | \(72\) |
gosper | \(\frac {2 \sqrt {e x +d}\, \left (3 b B \,x^{2} e^{2}+5 A b \,e^{2} x +5 B a \,e^{2} x -4 B b d e x +15 A a \,e^{2}-10 A b d e -10 B a d e +8 B b \,d^{2}\right )}{15 e^{3}}\) | \(73\) |
trager | \(\frac {2 \sqrt {e x +d}\, \left (3 b B \,x^{2} e^{2}+5 A b \,e^{2} x +5 B a \,e^{2} x -4 B b d e x +15 A a \,e^{2}-10 A b d e -10 B a d e +8 B b \,d^{2}\right )}{15 e^{3}}\) | \(73\) |
risch | \(\frac {2 \sqrt {e x +d}\, \left (3 b B \,x^{2} e^{2}+5 A b \,e^{2} x +5 B a \,e^{2} x -4 B b d e x +15 A a \,e^{2}-10 A b d e -10 B a d e +8 B b \,d^{2}\right )}{15 e^{3}}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 81, normalized size = 1.00 \begin {gather*} \frac {2}{15} \, {\left (3 \, {\left (x e + d\right )}^{\frac {5}{2}} B b - 5 \, {\left (2 \, B b d - B a e - A b e\right )} {\left (x e + d\right )}^{\frac {3}{2}} + 15 \, {\left (B b d^{2} + A a e^{2} - {\left (B a e + A b e\right )} d\right )} \sqrt {x e + d}\right )} e^{\left (-3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.27, size = 66, normalized size = 0.81 \begin {gather*} \frac {2}{15} \, {\left (8 \, B b d^{2} + {\left (3 \, B b x^{2} + 15 \, A a + 5 \, {\left (B a + A b\right )} x\right )} e^{2} - 2 \, {\left (2 \, B b d x + 5 \, {\left (B a + A b\right )} d\right )} e\right )} \sqrt {x e + d} e^{\left (-3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 311 vs.
\(2 (83) = 166\).
time = 15.91, size = 311, normalized size = 3.84 \begin {gather*} \begin {cases} \frac {- \frac {2 A a d}{\sqrt {d + e x}} - 2 A a \left (- \frac {d}{\sqrt {d + e x}} - \sqrt {d + e x}\right ) - \frac {2 A b d \left (- \frac {d}{\sqrt {d + e x}} - \sqrt {d + e x}\right )}{e} - \frac {2 A b \left (\frac {d^{2}}{\sqrt {d + e x}} + 2 d \sqrt {d + e x} - \frac {\left (d + e x\right )^{\frac {3}{2}}}{3}\right )}{e} - \frac {2 B a d \left (- \frac {d}{\sqrt {d + e x}} - \sqrt {d + e x}\right )}{e} - \frac {2 B a \left (\frac {d^{2}}{\sqrt {d + e x}} + 2 d \sqrt {d + e x} - \frac {\left (d + e x\right )^{\frac {3}{2}}}{3}\right )}{e} - \frac {2 B b d \left (\frac {d^{2}}{\sqrt {d + e x}} + 2 d \sqrt {d + e x} - \frac {\left (d + e x\right )^{\frac {3}{2}}}{3}\right )}{e^{2}} - \frac {2 B b \left (- \frac {d^{3}}{\sqrt {d + e x}} - 3 d^{2} \sqrt {d + e x} + d \left (d + e x\right )^{\frac {3}{2}} - \frac {\left (d + e x\right )^{\frac {5}{2}}}{5}\right )}{e^{2}}}{e} & \text {for}\: e \neq 0 \\\frac {A a x + \frac {B b x^{3}}{3} + \frac {x^{2} \left (A b + B a\right )}{2}}{\sqrt {d}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.63, size = 109, normalized size = 1.35 \begin {gather*} \frac {2}{15} \, {\left (5 \, {\left ({\left (x e + d\right )}^{\frac {3}{2}} - 3 \, \sqrt {x e + d} d\right )} B a e^{\left (-1\right )} + 5 \, {\left ({\left (x e + d\right )}^{\frac {3}{2}} - 3 \, \sqrt {x e + d} d\right )} A b e^{\left (-1\right )} + {\left (3 \, {\left (x e + d\right )}^{\frac {5}{2}} - 10 \, {\left (x e + d\right )}^{\frac {3}{2}} d + 15 \, \sqrt {x e + d} d^{2}\right )} B b e^{\left (-2\right )} + 15 \, \sqrt {x e + d} A a\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.21, size = 80, normalized size = 0.99 \begin {gather*} \frac {2\,\sqrt {d+e\,x}\,\left (3\,B\,b\,{\left (d+e\,x\right )}^2+15\,A\,a\,e^2+15\,B\,b\,d^2+5\,A\,b\,e\,\left (d+e\,x\right )+5\,B\,a\,e\,\left (d+e\,x\right )-10\,B\,b\,d\,\left (d+e\,x\right )-15\,A\,b\,d\,e-15\,B\,a\,d\,e\right )}{15\,e^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________